home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 3.4 KB | 158 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: Locrian:WWDCSun:CPlusPlus:LinkSpcB.xh.
- * Generated using:
- * SOM Precompiler somipc: somc/smemit.c
- * SOM Emitter emitxh.dll: somc/smmain.c
- */
-
- /*
- *
- * Theory of Operation
- *
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODBaseLinkSpec_xh
- #define SOM_ODBaseLinkSpec_xh
-
- class ODBaseLinkSpec;
-
- #define ODBaseLinkSpec_MajorVersion 1
- #define ODBaseLinkSpec_MinorVersion 0
-
- /* C++ som defs */
- #include <somcls.xh>
-
- /* Include C++ parent defs */
- #ifndef SOM_ODObject_xh
- #include <ODObject.xh>
- #endif
-
- #ifndef ODBaseLinkSpec_API
- #define ODBaseLinkSpec_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class ODExtension;
- class ODStorageUnit;
- class ODPart;
- class ODDraft;
-
- /*
- * End of user-defined types.
- */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export on
- #endif
-
-
- /* A procedure to create the ODBaseLinkSpec Class */
- SOMEXTERN SOMClass * SOMLINK ODBaseLinkSpecNewClass(
- integer4 majorVersion,
- integer4 minorVersion);
-
- /* The API to the ODBaseLinkSpec class object, and the methods it introduces. */
- typedef struct ODBaseLinkSpecClassDataStructure {
- SOMClass *classObject;
- somMToken WriteLinkSpec;
- somMToken ReadLinkSpec;
- somMToken reserved1;
- } ODBaseLinkSpecClassDataStructure;
- #ifdef SOM_NO_DATA_EXPORTS
- SOMEXTERN ODBaseLinkSpecClassDataStructure * ODBaseLinkSpecGetClassData ( void );
- # undef ODBaseLinkSpecClassData
- # define ODBaseLinkSpecClassData (*ODBaseLinkSpecGetClassData())
- #else
- SOMEXTERN ODBaseLinkSpecClassDataStructure ODBaseLinkSpecClassData;
- #endif /* SOM_NO_DATA_EXPORTS */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export off
- #endif
-
- #define _ODBaseLinkSpec ODBaseLinkSpecClassData.classObject
-
- /* The API to parentMtabs for ODBaseLinkSpec, and the instance data it introduces. */
- SOMEXTERN struct ODBaseLinkSpecCClassDataStructure {
- somMethodTabs parentMtab;
- somDToken instanceDataToken;
- } ODBaseLinkSpecCClassData;
-
- /*
- * -- Typedefs for Procedures that support Methods introduced by ODBaseLinkSpec
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_ODBaseLinkSpec_WriteLinkSpec)(ODBaseLinkSpec *somSelf, Environment *ev,
- ODStorageUnit* su);
- typedef void (* SOMLINK somTD_ODBaseLinkSpec_ReadLinkSpec)(ODBaseLinkSpec *somSelf, Environment *ev,
- ODStorageUnit* su);
- }
-
- #endif /* ODBaseLinkSpec_API */
-
-
- /*
- * -- Method Tokens are Thunks
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODBaseLinkSpec
- */
- class ODBaseLinkSpec : public ODObject
- {
- public:
-
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- if (!ODBaseLinkSpecClassData.classObject)
- ODBaseLinkSpecNewClass(ODBaseLinkSpec_MajorVersion,ODBaseLinkSpec_MinorVersion);
- return (void *)
- ((somTD_SOMClass_somNew)
- somresolve_((SOMObject *)((void*)(ODBaseLinkSpecClassData.classObject)),
- SOMClassClassData.somNew))
- ((SOMClass *)((void*)(ODBaseLinkSpecClassData.classObject)));
- }
-
- void operator delete(void * obj)
- {
- ((SOMObject *)obj)->somFree();
- }
-
- /* public method: WriteLinkSpec */
- void WriteLinkSpec(Environment *ev,
- ODStorageUnit* su)
- {
- SOM_Resolve(this,ODBaseLinkSpec,WriteLinkSpec)
- (this,ev,su);
- }
-
-
- /* public method: ReadLinkSpec */
- void ReadLinkSpec(Environment *ev,
- ODStorageUnit* su)
- {
- SOM_Resolve(this,ODBaseLinkSpec,ReadLinkSpec)
- (this,ev,su);
- }
-
-
-
- }; /* ODBaseLinkSpec */
-
-
-
- #endif /* SOM_ODBaseLinkSpec_xh */
-